var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection2();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.setStandAloneMode(true);
            cm.fieldEffect_PlayBGM("Bgm53/RedMoon", 0, 0);
            cm.inGameDirectionEvent_SetHideEffect(1);
            cm.npc_ChangeController(3004454, "oid=863745", 4860, -80, 7, 4810, 4910, 1, false, 0, false);
            cm.npc_SetSpecialAction("oid=863745", "summon", 0, 0);
            cm.npc_ChangeController(3004447, "oid=863746", 4950, -80, 2, 4900, 5000, 1, true, 0, false);
            cm.npc_SetSpecialAction("oid=863746", "summon", 0, 0);
            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 1000, 0, 4098, -110);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_AskAnswerTime(100)
            } else {
                if (status === a++) {
                    cm.inGameDirectionEvent_PushScaleInfo(7000, 0, 1000, 7000, 4775, -110)
                } else {
                    if (status === a++) {
                        cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 3500, 0);
                        cm.inGameDirectionEvent_AskAnswerTime(8200)
                    } else {
                        if (status === a++) {
                            cm.OverlapScreenDetail19(0, 1000, 3000, 1);
                            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 2000, 0, 4930, 0)
                        } else {
                            if (status === a++) {
                                cm.inGameDirectionEvent_AskAnswerTime(300)
                            } else {
                                if (status === a++) {
                                    cm.fieldEffect_RemoveOverlapScreenDetail(1000);
                                    cm.inGameDirectionEvent_AskAnswerTime(1000)
                                } else {
                                    if (status === a++) {
                                        cm.sendNormalTalk_Bottom("#face0#如果不乘胜追击，他们可就要缓过气来了？", 37, 3004454, false, true)
                                    } else {
                                        if (status === a++) {
                                            cm.sendNormalTalk_Bottom("#face0#要趁早打破僵局。毕竟那边有“那个家伙”。", 37, 3004447, true, true)
                                        } else {
                                            if (status === a++) {
                                                cm.sendNormalTalk_Bottom("#face0#你说那家伙……是指#b对抗者#k吗？", 37, 3004454, true, true)
                                            } else {
                                                if (status === a++) {
                                                    cm.sendNormalTalk_Bottom("#face0#消灭了超越者的家伙啊。\r\n一味地投入兵力，只会增加我方的损失。", 37, 3004447, true, true)
                                                } else {
                                                    if (status === a++) {
                                                        cm.sendNormalTalk_Bottom("#face0#嗯……", 37, 3004454, true, true)
                                                    } else {
                                                        if (status === a++) {
                                                            cm.sendNormalTalk_Bottom("#face0#但对抗者的力量并没有强大到单人只剑力敌千军嘛。", 37, 3004454, true, true)
                                                        } else {
                                                            if (status === a++) {
                                                                cm.sendNormalTalk_Bottom("#face0#难道不是因为#r黑魔法师#k自己想要消亡，\r\n所以当时才能借机打败他的吗？", 37, 3004454, true, true)
                                                            } else {
                                                                if (status === a++) {
                                                                    cm.sendNormalTalk_Bottom("#face0#哈哈，所以对抗者之流也没什么可怕的嘛？", 37, 3004447, true, true)
                                                                } else {
                                                                    if (status === a++) {
                                                                        cm.sendNormalTalk_Bottom("#face0#在我听来，像是在暗示你亲自出马就能大败敌军啊？", 37, 3004447, true, true)
                                                                    } else {
                                                                        if (status === a++) {
                                                                            cm.sendNormalTalk_Bottom("#face1#那样的事……！", 37, 3004454, true, true)
                                                                        } else {
                                                                            if (status === a++) {
                                                                                cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 700, 0);
                                                                                cm.sendNormalTalk_Bottom("#face0#那样的事我可从来没说过……", 37, 3004454, true, true)
                                                                            } else {
                                                                                if (status === a++) {
                                                                                    cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1500, 0);
                                                                                    cm.sendNormalTalk_Bottom("#face0#你说得确实没错。", 37, 3004447, true, true)
                                                                                } else {
                                                                                    if (status === a++) {
                                                                                        cm.sendNormalTalk_Bottom("#face0#但是，他命令我们先静观其变。", 37, 3004447, true, true)
                                                                                    } else {
                                                                                        if (status === a++) {
                                                                                            cm.sendNormalTalk_Bottom("#face0#不过#r达勒摩尔#k那家伙。", 37, 3004447, true, true)
                                                                                        } else {
                                                                                            if (status === a++) {
                                                                                                cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 500, 0);
                                                                                                cm.inGameDirectionEvent_头顶图片(["Effect/OnUserEff.img/emotion/oh", "oid=863745"], [0, 0, 0, 1, 0, 1, 0, 0]);
                                                                                                cm.npc_setForceFlip("oid=863745", 1);
                                                                                                cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1500, 0);
                                                                                                cm.sendNormalTalk_Bottom("#face0#把人派来这种偏僻之地，自己却不知道跑到别处干什么去了……", 37, 3004447, true, true)
                                                                                            } else {
                                                                                                if (status === a++) {
                                                                                                    cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1500, 0);
                                                                                                    cm.sendNormalTalk_Bottom("#face0#你小心祸从口出。", 37, 3004454, true, true)
                                                                                                } else {
                                                                                                    if (status === a++) {
                                                                                                        cm.sendNormalTalk_Bottom("#face0#他的大名可不是你想叫就叫的。", 37, 3004454, true, true)
                                                                                                    } else {
                                                                                                        if (status === a++) {
                                                                                                            cm.sendNormalTalk_Bottom("#face0#总之……哈~", 37, 3004447, true, true)
                                                                                                        } else {
                                                                                                            if (status === a++) {
                                                                                                                cm.npc_SetForceMove("oid=863746", 1, 200, 70);
                                                                                                                cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1500, 0);
                                                                                                                cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 500, 0);
                                                                                                                cm.sendNormalTalk_Bottom("#face0#说起来，现在还不到吃饭的时间吗？", 37, 3004447, true, true)
                                                                                                            } else {
                                                                                                                if (status === a++) {
                                                                                                                    cm.sendNormalTalk_Bottom("#face0#……", 37, 3004454, true, true)
                                                                                                                } else {
                                                                                                                    if (status === a++) {
                                                                                                                        cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 2500, 0);
                                                                                                                        cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                                                                                                                        cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                                                    } else {
                                                                                                                        if (status === a++) {
                                                                                                                            cm.eventSKill(0);
                                                                                                                            cm.warp(993150000, 0, false);
                                                                                                                            cm.setInGameDirectionMode(false, true, false);
                                                                                                                            cm.setStandAloneMode(false);
                                                                                                                            cm.forceCompleteQuest(37501);
                                                                                                                            cm.updateInfoQuest(37500, "11=h0;04=h0;05=h0;06=h0;25=h0;07=h0");
                                                                                                                            cm.npc_LeaveField("oid=863745");
                                                                                                                            cm.npc_LeaveField("oid=863745");
                                                                                                                            cm.npc_LeaveField("oid=863746");
                                                                                                                            cm.npc_LeaveField("oid=863746");
                                                                                                                            cm.dispose()
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};